<?php
/**
 * 图标管理
 * Created by gii.
 * User: Gii
 * Date: 2022/03/18
 * Time: 16:49
 */

namespace App\Http\Admin\Logics;

use App\Models\Models\System\SystemIcon;

class IconLogic
{
	public static function getListWithCount($where=[], $field='*', $page=1, $limit=10, $order=['id', 'desc']) {
        $where = SystemIcon::getSelfWhereCommon($where);
		return SystemIcon::getListWithCountCommon($where, $field, $page, $limit, $order);
	}

	public static function getAll() {
		return SystemIcon::getAllCommon();
	}

	public static function del($id) {
		return SystemIcon::delByPkCommon($id);
	}

	public static function update($data) {
		return SystemIcon::updateCommon($data);
	}

	public static function add($data) {
		return SystemIcon::addCommon($data);
	}

	public static function getInfo($id) {
		return SystemIcon::getLineByPkCommon($id);
	}

	public static function status($id, $status) {
		return SystemIcon::status($id, $status);
	}
}
